package com.jy.rhin.infra.cda.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.jy.rhin.infra.cda.ycf.ChanQianSFVo;
import com.jy.rhin.infra.cda.ycf.YunChanFBJKVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface ChanQianSFMapper extends BaseMapper<Object> {
	@Select("select a.*,b.ZHENGJIANHM  from FY_CHANQIANSFJL a left join FY_YUNCHANFBJK b on a.YUNCHANFWYBS = b.YUNCHANFWYBS  ${ew.customSqlSegment}")
	ChanQianSFVo getOne(@Param(Constants.WRAPPER) QueryWrapper<ChanQianSFVo> queryWrapper);
	
	@Select("select * from fy_yunchanfbjk where YUNCHANFWYBS =#{yunChanFWYBS} ")
	YunChanFBJKVo getBJK(@Param("yunChanFWYBS")String yunChanFWYBS);
}
